package com.crm.service.impl;

import com.crm.dao.ProductDao;
import com.crm.dao.UserDao;
import com.crm.entity.Product;
import com.crm.entity.User;
import com.crm.service.ProductService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * 产品Service实现类
 *
 * @author Administrator
 */
@Service("productService")
public class ProductServiceImpl implements ProductService {

    @Resource
    private ProductDao productDao;

    @Override
    public List<Product> find(Map<String, Object> map) {
        return productDao.find(map);
    }

    @Override
    public Long getTotal(Map<String, Object> map) {
        return productDao.getTotal(map);
    }

}